package cn.com.dhc.danlu.activity;

import android.app.Activity;
import android.support.v4.app.Fragment;

import cn.com.hd.mall.web.webservices.entity.response.model.ResultModel;

public abstract class BaseFragment extends Fragment {
    protected IFragmentEvent baseIFragmentEvent = null;

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        if (activity instanceof IFragmentEvent) {
            baseIFragmentEvent = (IFragmentEvent) activity;
        }
    }

    /**
     * refresh fragment ui
     */
    public abstract void refreshFragmentUI(ResultModel model);

    /**
     * fragment事件定义
     */
    public interface IFragmentEvent {
    }
}